﻿@model  ScmThreePersonnelViewModel
@{
    Layout = null;
    ViewBag.Title = "三类人员台账-编辑";
}
<script src="/Scripts/jQuery/jquery.validate.min.js" type="text/javascript"></script>
<script src="/Scripts/jQuery/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
<script type="text/javascript">
    function dialogRefresh(json) {
        DWZ.ajaxDone(json);
        if (json.statusCode == DWZ.statusCode.ok) {
            $("#pagerForm", navTab.getCurrentPanel()).submit();
            $.pdialog.closeCurrent();
        }
    }
</script>
@{Html.EnableClientValidation();}
@using (Html.BeginForm("ThreePersonnelEditData", "ScmThreePersonnel", null, FormMethod.Post, new { onsubmit = "return validateCallback(this,dialogRefresh);", @class = "pageForm required-validate" }))
{
@*<form method="post" action="@Url.Action("ThreePersonnelEditData", "ScmThreePersonnel")" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogRefresh)">*@
<div class="pageFormContent sortDrag" layouth="60">
    @Html.TextBoxFor(model => model.ThreePersonnelInfo.Tp_ID, new { @type = "hidden" })
    @Html.TextBoxFor(model => model.ThreePersonnelInfo.Tp_Section, new { @type = "hidden" })
    @Html.TextBoxFor(model => model.ThreePersonnelInfo.Tp_UnitID, new { @type = "hidden" })
    @Html.TextBoxFor(model => model.ThreePersonnelInfo.Tp_UnitName, new { @type = "hidden" })
    <table class="tab01 tabNo" width="100%;">
        <tr>
            <td class="td1" style="width: 30%;">
                姓名：
            </td>
            <td>
                 @Html.TextBoxFor(model => model.ThreePersonnelInfo.Tp_Name, new Dictionary<string, object> { { "class", "data-val-required input02" }})
                   @Html.ValidationMessageFor(model => model.ThreePersonnelInfo.Tp_Name)
               @* @Html.TextBoxFor(model => model.ThreePersonnelInfo.Tp_Name, new { @class = "input02" })*@
            </td>
        </tr>
        <tr>
            <td class="td1">
                性别：
            </td>
            <td>
                @Html.DropDownListFor(model => model.ThreePersonnelInfo.Tp_Sex, ViewBag.sexlist as IEnumerable<SelectListItem>)
            </td>
        </tr>
        <tr>
            <td class="td1">
                职务：
            </td>
            <td>
                @Html.TextBoxFor(model => model.ThreePersonnelInfo.Tp_Post, new { @class = "input02" })
            </td>
        </tr>
        <tr>
            <td class="td1">
                证书编号：
            </td>
            <td>
                @Html.TextBoxFor(model => model.ThreePersonnelInfo.Tp_CertificateNumber, new { @class = "input02" })
            </td>
        </tr>
        <tr>
            <td class="td1">
                发证日期：
            </td>
            <td>
                @Html.TextBoxFor(model => model.ThreePersonnelInfo.Tp_IssueDate, new { @class = "date input02", Value = (Model.ThreePersonnelInfo.Tp_IssueDate == null ? "" : Convert.ToDateTime(Model.ThreePersonnelInfo.Tp_IssueDate).ToString("yyyy-MM-dd")) })
            </td>
        </tr>
        <tr>
            <td class="td1">
                证件有效期：
            </td>
            <td>
                @Html.TextBoxFor(model => model.ThreePersonnelInfo.Tp_ValidityDate, new { @class = "date input02", Value = (Model.ThreePersonnelInfo.Tp_ValidityDate == null ? "" : Convert.ToDateTime(Model.ThreePersonnelInfo.Tp_ValidityDate).ToString("yyyy-MM-dd")) })
            </td>
        </tr>
        <tr>
            <td class="td1">
                是/否面试合格：
            </td>
            <td>
                @Html.DropDownListFor(model => model.ThreePersonnelInfo.Tp_IsInterview, ViewBag.list as IEnumerable<SelectListItem>)
            </td>
        </tr>
        <tr>
            <td class="td1">
                是/否变更人员：
            </td>
            <td>
                @Html.DropDownListFor(model => model.ThreePersonnelInfo.Tp_IsChange, ViewBag.list as IEnumerable<SelectListItem>)
            </td>
        </tr>
        <tr>
            <td class="td1">
                资格类型：
            </td>
            <td>
                @Html.TextBoxFor(model => model.ThreePersonnelInfo.Tp_QualificationType, new { @class = "input02" })
            </td>
        </tr>
        <tr>
            <td class="td1">
                备注：
            </td>
            <td>
                @Html.TextBoxFor(model => model.ThreePersonnelInfo.Tp_Remark, new { @class = "input02" })
            </td>
        </tr>
    </table>
</div>
<div class="formBar">
    <ul>
        <li>
            <button type="submit" class="btn btn-sm">
                保存</button>
        </li>
        <li>
            <button type="button" class="close btn btn-default btn-sm">
                取消</button>
        </li>
    </ul>
</div>
@*</form>*@
}
